#include "junix.h"
#include <tr1/functional>

using namespace std;

void f(int i)
{
	cout<<i<<endl;
}

int main(int argc, char **argv)
{
	vector<int> vi(20);
	generate(vi.begin(),vi.end(),
			std::tr1::bind( modulus<int>(),
				std::tr1::bind(rand), 20));
	copy(vi.begin(),vi.end(),
			ostream_iterator<int>(cout, " ") );

	cout<<endl;
}
